#include <cstddef>
#include <iostream>
#include <string>

using namespace std;

int main() {
    string ipt;
    string opt;
    const string left{'&', 'l', 't', ';'};
    const string right{'&', 'g', 't', ';'};
    getline(cin, ipt);

    auto N = ipt.size();
    for (size_t i = 0; i < N; ++i) {
        if (ipt[i] == '<') {
            opt += left;
            continue;
        }
        if (ipt[i] == '>') {
            opt += right;
            continue;
        }
        opt += ipt[i];
    }

    cout << opt << endl;

    return 0;
}
